Skip to content

Conversation

@ericgibby
Copy link

Added listener to chrome.runtime.onMessageExternal so the webview can use the Chrome messaging API for setting and retrieving application settings.

Also added handler for opening external links in a new browser tab, since the app inside the webview now has links for the Privacy Policy and EULA which open PDFs in new tabs.

browser.js Outdated
chrome.runtime.getBackgroundPage(function (bg) {
chrome.runtime.getBackgroundPage(function(bg) {
window.bg = bg;
chrome.storage.local.get(null, settings_ready);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want this to be storage.get? To simplify it as you've done elsewhere?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks!

…e` to store settings with Chrome storage. Also added handler for opening external links in new browser tab.
@ericgibby ericgibby merged commit e7edd82 into IL Aug 22, 2017
@ericgibby ericgibby deleted the message-handler branch August 22, 2017 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants